package cn.gson.springboot.model.mapper.salemapper;

import cn.gson.springboot.model.dao.saledao.OrderinvoiceDao;
import cn.gson.springboot.model.pjos.*;
import cn.gson.springboot.model.vo.salesvo.RefundinfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Repository
@Transactional
public interface CtschemeMapper {


    /**
     * 退货单
     * @return
     */
    public List<RefundinfoVo> RefundinfoInfo(String searchInfo);

    public Integer selectMaxDeliveryId(Integer orderId);

     /**
      * 回款
      * @return
      */
     public List<Ctschemes> ctschemesInfo(Integer orderId);

     /**
      * 交付计划
      * @param orderId
      * @return
      */
     public List<Deliveryplan> deliveryplanList(Integer orderId);

     /**
      * 发票
      * @param orderId
      * @return
      */
     public List<Orderinvoice> orderinvoiceList(Integer orderId);

    /**
     * 发货单详细
     * @return
     */
     public List<Deliveryplan> invoiceInfo();

    /**
     * 交付下的产品
     * @param id
     * @return
     */
     public List<Deliverydetails> deliveryplanProductInfo(Integer id);

    /**
     * 换货编号
     * @return
     */
    public String selectMaxExchangeName();

    /**
     * 退货编号
     * @return
     */
    public String selectMaxReturnorderName();

    /**
     * 回款列表
     * @return
     */
    public List<Ctschemes> allCtshemsInfo(String searchInfo);

}
